package cn.interfacehomework03;



public class Test {

    static void makeFly(CanFly a)
    {
        System.out.println("准备起飞！");
    }
    public static void main(String[] args) {

        Airplane jixie=new Airplane();
        jixie.fly();
        CanFly a=jixie;
        Test.makeFly(a);

        Bird shengwu=new Bird();
        shengwu.fly();
        CanFly b=shengwu;
        Test.makeFly(b);

    }

}
